package com.znf4.user.address.server.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znf4.user.address.entity.UserAddress;
import com.znf4.user.address.mapper.UserAddressMapper;
import com.znf4.user.address.server.UserAddressServer;

@Service
public class UserAddressServerImpl implements UserAddressServer {
	
	@Autowired
	private UserAddressMapper userAddressMapper ;

	public void addUserAddress(UserAddress userAddress) {
		userAddressMapper.insert(userAddress);
		
	}

	public void updateUserAddress(UserAddress userAddress) {
		userAddressMapper.update(userAddress);
		
	}

	public void delOneUserAddress(UserAddress userAddress) {
		userAddressMapper.deleteOne(userAddress);
		
	}

	public void delAllUserAddress(List<UserAddress> list) {
		userAddressMapper.deleteAll(list);
		
	}

	public UserAddress queryOne(UserAddress userAddress) {
		return userAddressMapper.queryOne(userAddress);
	}

	public List<UserAddress> queryAll(UserAddress userAddress) {
		return userAddressMapper.queryAll(userAddress);
	}

	
	

	
	
	
	
	
	
	
	
	

}
